import { takeEvery, takeLatest, all } from 'redux-saga/effects'

// listen actions
import { REQUEST_PROJECTS } from '../actions'

// action handlers
import getProjects from './modules/projects'

const combineEffects = function * combineEffects() {
  yield takeEvery(REQUEST_PROJECTS, getProjects)
}

const root = function * root() {
  yield all([
    combineEffects(),
  ])
}

export default root